package cn.iocoder.yudao.module.measure.dal.mysql.warning;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.measure.dal.dataobject.warning.BusinessDeviceUploadWarningConfig;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 设备上传数据报警设置
 * </p>
 *
 * @author zhengbzh
 * @date 2025-06-03 15:38:10
 * @create [2025-06-03 15:38:10] [zhengbzh] [代码生成器生成]
 */
@Mapper
public interface BusinessDeviceUploadWarningConfigMapper extends BaseMapperX<BusinessDeviceUploadWarningConfig> {

    default List<BusinessDeviceUploadWarningConfig> getDeviceWarningConfig(String deviceId){
        QueryWrapper<BusinessDeviceUploadWarningConfig> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("device_id", deviceId);
        return selectList(queryWrapper);
    };
}


